package com.ruoyi.datastatistics.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 大表每小时用量数据
 *
 * @author TsingYu
 * @version 2.0
 * @date 2024/6/21 9:42
 */
@Data
public class HourUsageData implements Serializable {
    private static final long serialVersionUID = 2167719889062296886L;
    /**
     * 终端id
     */
    private String locationNb;
    /**
     * 日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;
    /**
     * 第几个小时
     */
    private Integer hour;
    /**
     * 用量
     */
    private BigDecimal usage;
}
